export interface AppTreeData {
  label: string
  value: string
  children?: AppTreeData[]
}

export const appTreeProps = {
  modelValue: {
    type: String || Array<string>,
    required: true
  },
  data: {
    type: Array<AppTreeData>,
    required: true
  },
  multiple: {
    type: Boolean,
    default: false
  }
}

export const appTreeEmits = ['open', 'change']
